home *** CD-ROM | disk | FTP | other *** search
- From: Julian Reschke <reschke@GOEDEL.UNI-MUENSTER.DE>
- Subject: fsinfo
- Date: Fri, 22 Apr 94 10:31:09 MET DST
-
- Proposal for Dcntl call to inquire information about file systems:
-
- struct fsdesc
- {
- char shortname[8]; /* like 'Minix-FS' or 'Proc-FS' */
- char longname[40];
- char copyright[40];
- int version; /* 0x0231 == '2.31' */
- };
-
- For 'shortname', there should be a list of assigned names so that
- specialized tools (like minit) can be sure that they have the right fs.
-
- In addition, there should be some flags specifying what the FS is
- capable of (different timestamps, returns 'right' inodes) -- or should this
- go into new Dpathconf opcodes?
-
- Dcntl:
-
- #define FS_INFO 0xf005 /* get fs information */
-
- struct fsinfo
- {
- int length; /* length of next string field */
- char *nextfs;
- struct fsdesc fsd; /* above */
- };
-
- This Dcntl would get information about the filesystem beloging to the path
- argument. If there are more file systems below this directory (Minix FS
- mounts), the name of the next' moint point (in the fs's internal list)
- is placed into 'nextfs', if 'length' is big enough (otherwise -> ERANGE).
- As a special case, length == 0 should be allowed (I'm not interested in
- further mount points).
-
- --
- ---------------------------------------------------
- Julian F. Reschke, Hensenstr. 142, D-48161 Muenster
- eMail: reschke@math.uni-muenster.de jr@ms.maus.de
- ___________________________________________________
-